<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <table border="1">
        <tr>
            <th>编号</th>
            <th>标题</th>
            <th>创建时间</th>
            <th>数量</th>
            <th>操作</th>
        </tr>
        <c:forEach items="${pageinfo.list}" var="easy">
            <tr>
                <td>${easy.id}</td>
                <td>${easy.title}</td>
                <td>${easy.createtime}</td>
                <td>${easy.nums}</td>
                <td>
                    <a href="${pageContext.request.contextPath}/easy/findById?id=${easy.id}">修改</a>
                    <a href="${pageContext.request.contextPath}/easy/deleteById/${easy.id}">删除</a>
                </td>
            </tr>
        </c:forEach>
    </table>
    总条数:${pageinfo.total}&nbsp;&nbsp;&nbsp;&nbsp;
    ${pageinfo.pageNum}/${pageinfo.pages}
    <a href="${pageContext.request.contextPath}/easy/findall?startpage=${pageinfo.nextPage==0?pageinfo.nextPage+1:pageinfo.nextPage}&pagesize=${pageinfo.pageSize}">下一页</a>
</body>
</html>
